<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="${pageContext.request.contextPath}/jslib/jquery-1.8.2.min.js" charset="utf-8"></script>
<!-- jquery Cookie插件 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/jslib/jquery.cookie.js" charset="utf-8"></script>
<!-- easyui相关库 -->
<link id="easyuiTheme" rel="stylesheet" href="${pageContext.request.contextPath}/jslib/jquery-easyui-1.3.1/themes/<c:out value="${cookie.easyuiThemeName.value}" default="default"/>/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="${pageContext.request.contextPath}/jslib/jquery-easyui-1.3.1/themes/icon.css" type="text/css"></link>
<script type="text/javascript" src="${pageContext.request.contextPath}/jslib/jquery-easyui-1.3.1/jquery.easyui.min.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
<!-- easyui插件库 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/jslib/jquery-easyui-portal/portal.css" type="text/css"></link>
<script type="text/javascript" src="${pageContext.request.contextPath}/jslib/jquery-easyui-portal/jquery.portal.js" charset="utf-8"></script>
<!-- 自定义库 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/style/syCss.css" type="text/css"></link>
<!-- xhEditor插件库 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/jslib/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
	parent.$.messager.progress('close');
	function changPassword() {
		$('#passwordForm').form('submit', {
			url : '${pageContext.request.contextPath}/xtpz/changePasswordAction!edit.html',
			success : function(d) {
				var json = $.parseJSON(d);
				if (json.success) {
					//TODO
					
				}
				parent.sy.messagerShow({
					msg : json.msg,
					title : '提示'
				});
			}
		});
	}
	
	function reset() {
		$('#passwordForm input').val('');
	}
</script>
</head>
<body class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false,title:'修改密码'" style="height: 90px;overflow: hidden;" align="left">
		<form id="passwordForm">
			<table class="tableForm datagrid-toolbar" style="width: 100%;height: 100%;">
				<tr>
					<th style="width: 60px;">输入密码</th>
					<td><input name="password" type="password" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写登录密码'" style="width: 145px;"/>
					</td>
					<th style="width: 60px;">重复密码</th>
					<td><input type="password" class="easyui-validatebox" data-options="required:'true',missingMessage:'请再次填写密码',validType:'eqPassword[\'#passwordForm input[name=password]\']'" style="width: 145px;"/>
					</td>
				</tr>
				<k:security key="XTPZ_XGMM_EDIT">
				<tr>
					<td colspan="4" style="text-align:center"><a href="javascript:void(0);" class="easyui-linkbutton" onclick="changPassword();">确定</a><a href="javascript:void(0);" class="easyui-linkbutton" onclick="reset();">重置</a></td>
				</tr>
				</k:security>
			</table>
		</form>
	</div>
</body>
</html>